"use strict";(self.webpackChunkashokLeyland=self.webpackChunkashokLeyland||[]).push([[241],{1607:(e,t,a)=>{a.d(t,{A:()=>w});var i=a(2326),l=a(1166),r=a(2830),o=a(6540),s=a(2511),n=a(6245),c=a(5735),p=a(7832),d=a(5556),u=a.n(d),h=a(4692);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=1?e.activeSlide-1:0,flag:"prev",initialActiveFlag:0,caption:E.display&&d&&d.length>0&&d[e.activeSlide]?d[e.activeSlide][E.key]:""});e.autoSlide&&(0,o.useEffect)((()=>{clearTimeout(b),!e.autoSlideRepeat&&v||(b=setTimeout((t=>{let a=G.activeSlide+1;a>=d.length?e.autoSlideRepeat?$(0,t):v=!0:$(a,t)}),e.autoSlide,O.current))}),[G]),(0,o.useEffect)((()=>{if(e.activeSlide>1&&0==G.initialActiveFlag&&$(e.activeSlide-1,O.current),e.firstImageVisibility&&null!=O.current&&null!=O.current.firstChild&&setTimeout((()=>{null!=O.current&&(O.current.firstChild.style.visibility="visible")}),100),e.carousalItem>1&&P&&O.current&&O.current.childNodes&&O.current.childNodes.forEach((function(t){t.style="width:"+100/e.carousalItem+"%;"})),"360 View"==L){let t=document.querySelectorAll(`#${e.contentId} li iframe`);null!=t&&t[G.activeSlide]&&""==t[G.activeSlide].src&&(t[G.activeSlide].src=t[G.activeSlide].dataset.gsllSrcd)}}));let j=t=>{let a=t.target;void 0!==m&&clearTimeout(m),m=setTimeout((()=>{let t=Math.round(a.scrollLeft/a.clientWidth);window.requestAnimationFrame((function(){B({activeSlide:t}),void 0!==e.activeSlidecb&&e.activeSlidecb(t)}))}),20)},z=(e,t,a,i)=>{i&&i.target&&i.preventDefault();try{if(!a){let e=document.querySelector('[data-pager="'+L+'"] ul');e&&(0,c.A)({element:e,type:""},(function(e){e||setTimeout((function(){window.scrollBy(0,10)}),500)}))}let i="next"==e?G.activeSlide{a.preventReload?window.open(a.onClickUrl):l.N.push(a.onClickUrl),"function"==typeof e.setGtmTracking&&e.setGtmTracking(h(t.target),t)},$=(t,a)=>{let i=a.firstChild.clientWidth,l=t*i;void 0!==e.beforeSlideCallBack&&!(t<0||t>=d.length)&&e.beforeSlideCallBack(L,G.activeSlide),!(t<0||t>=d.length)&&B({activeSlide:t,initialActiveFlag:!0,flag:t>G.activeSlide?"next":"prev",caption:E.display&&d[t]?d[t][E.key]:""}),A.display&&null!=D.current&&A.scroll&&K(t,D.current),M(a),window.requestAnimationFrame((function(){if("transform"===C?a.style="transform: translate(-"+l+"px,0px);transition: transform .4s ease-in-out;":a.scrollTo(l,0),void 0!==e.afterSlideCallback){let i=t>=d.length?"right":t<0?"left":"";e.afterSlideCallback(t,G.flag,a,N,i)}}))},H=e=>{f=e.changedTouches[0].pageX},F=t=>{if(f){y=t.changedTouches[0].pageX;let a=y-f;a>75?(0!=G.activeSlide||e.showNextPrevAl)&&$(G.activeSlide-1,O.current):a<-75&&(d.length>G.activeSlide+1||e.showNextPrevAl)&&$(G.activeSlide+1,O.current)}},M=e=>{let t=e.getAttribute("data-carousel");G.flag,L&&L.toLowerCase(),t&&t.toLowerCase()},R=(t,a,i)=>{if(i){let e=document.querySelectorAll('[data-pager="'+t+'"] ul li');setTimeout((()=>{e&&e[a]&&e[a].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}),1)}else{let i=t.firstChild.clientWidth,l=e.firstImageVisibility&&s.A.isIphone()?a*(i+2):a*(i+15);t.scrollTo(l,0)}},K=(e,t)=>{document.querySelector('[data-pager="'+L+'"] ul')&&(P?s.A.isSafari()?R(t,e,!1):R(L,e,!0):s.A.isIphone()||s.A.isIpad()?R(t,e,!1):R(L,e,!0))},U=(e,t,a,i)=>{void 0!==w&&w(t,a,i)},W=function(e){let t=e.split(","),a={};return a=t.length>1?{backgroundImage:`-webkit-linear-gradient(left,${t[0]} 50%, ${t[1]} 50%)`}:{backgroundColor:t[0]},a},q=function(t){return o.createElement("ul",{ref:D,className:"gscr_lSPager gscr_lSGallery"},t&&t.map(((t,a)=>o.createElement("li",{key:`otherlithumbcolor-${a}`,"data-img-fit":"true","data-color":`color${a}`,className:"gscr_dot "+(a==G.activeSlide?"gscr_active":"")},e.isHref?o.createElement(p.A,{onClick:e.isHrefHandler?e=>z("",a,!0,e):"",urlKey:"urlWithoutBackslash",default:!0,slug:t.colorUrl,title:t.title},o.createElement("div",{className:"gs_control"},o.createElement("span",{className:"colorHolder"},o.createElement("i",{className:"coloredIcon",style:W(t.hexCode)})))):o.createElement("div",{onClick:e=>z("",a,!0),className:"gs_control"},o.createElement("span",{className:"colorHolder"},o.createElement("i",{className:"coloredIcon",style:W(t.hexCode)})))))))},Q=function(e){return o.createElement("ul",{ref:D,onScroll:e=>Z(e),className:"gscr_lSPager gscr_lSGallery"},e&&e.map(((e,t)=>o.createElement("li",{key:`imagethumb-${t}`,"data-img-fit":"true",className:(t==G.activeSlide?"gscr_active":"")+" gscr_dot scrollSmooth"},o.createElement(r.A,{onClick:e=>z("",t,!0),className:"hover thumbItemList",type:"image","data-lazy":P?t>8||x:t>3||x,src:e.thumbNail?e.thumbNail:e.image,imagepostfix:A.size,alt:""+(null!=e.title?`${e.title}`:`${e.type}`),title:""+(e.title?`${e.title}`:`${e.type}`)})))))},Z=e=>{void 0!==m&&clearTimeout(m)},Y=e=>o.createElement(o.Fragment,null,A.display&&function(e,t){if(!t||t.length<1)return null;switch(e){case"html":let e=()=>"html"==A.type&&A.content.length>1?o.createElement("ul",{ref:D,className:A.className},A.content.map(((e,t)=>o.createElement("li",{style:{color:`rgba(${A.activeColor},1)`,borderColor:G.activeSlide==t?`rgba(${A.activeColor},1)`:`rgba(${A.activeColor},.3)`},key:t,onClick:e=>z("",t,!0),className:`${G.activeSlide==t?A.classActive:""}`},e)))," "):"";return"Videos"==L?o.createElement("div",{"data-type":"css-carousel","data-pager":L},e()):e();case"colors":return o.createElement("div",{className:A.className,"data-type":"css-carousel","data-pager":L},q(t));case"thumbnail":return o.createElement("div",{className:`${A.className}`,"data-pager":L,"data-type":"css-carousel"},Q(t.list?t.list:t))}}(A.type,A.content),E.display&&o.createElement(i.OK,{tag:"span",className:"galleryName"},G.caption));switch(I){case"images":return n.A.isEmptyObject(d)||d.length<1?null:o.createElement("div",{"data-type":e.topDataType,className:P?T:_},o.createElement("div",{className:"posR"},d&&d.length>0&&o.createElement("ul",{ref:O,onTouchStart:e=>H(e),onTouchEnd:e=>F(e),"data-carousel":N,className:`${"scroll"==C?"scrollSmooth":""} ${P?e.adInnerClassDesktop:e.adInnerClassMobile} overXhidden`},d.map(((t,a)=>o.createElement("li",{key:a,className:"hover",style:"fade"==C?G.activeSlide==a?{opacity:1,transition:"all .3s ease-in 0s "}:{opacity:.3}:{},onClick:e=>U(0,S,a,t.type)},o.createElement(r.A,g({src:t[e.lazyloadKeys.src],alt:t[e.lazyloadKeys.title]||t[e.lazyloadKeys.src],title:t[e.lazyloadKeys.title],"data-lazy":!(a<=1)||u,type:"image",style:{width:"100%"}},t.onClickUrl?{imageOnClick:e=>V(e,t)}:{},{autoFit:e.lazyloadKeys.autoFit,autoFitMobile:e.lazyloadKeys.autoFitMobile})))))),e.showNextPrevButton&&d.length>1&&o.createElement(o.Fragment,null,G.activeSlide>0&&o.createElement("span",{className:"ScBtn prev",onClick:()=>z("prev",1,!1)},o.createElement("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}," ",o.createElement("g",{id:" Arrow/Down ↓",clipPath:"url(#clip0_2262_1750)"}," ",o.createElement("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 6.15429C11.5 5.87815 11.2761 5.65429 11 5.65429L2.08711 5.65429L4.37963 2.97968C4.55934 2.77002 4.53506 2.45437 4.3254 2.27466C4.11573 2.09495 3.80008 2.11923 3.62037 2.32889L0.620372 5.82889C0.459876 6.01614 0.459876 6.29244 0.620372 6.47968L3.62037 9.97968C3.80008 10.1893 4.11573 10.2136 4.3254 10.0339C4.53506 9.8542 4.55934 9.53855 4.37963 9.32889L2.08711 6.65429L11 6.65429C11.2761 6.65429 11.5 6.43043 11.5 6.15429Z",fill:"black"})," ")," ",o.createElement("defs",null," ",o.createElement("clipPath",{id:"clip0_2262_1750"}," ",o.createElement("rect",{width:"12",height:"12",fill:"white",transform:"matrix(4.37114e-08 -1 -1 -4.37114e-08 12 12.1543)"})," ")," ")," ")),G.activeSlidez("next",1,!1)},"Next ",o.createElement("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}," ",o.createElement("g",{id:" Arrow/Down ↓",clipPath:"url(#clip0_2262_1754)"}," ",o.createElement("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 6.15429C0.5 5.87815 0.723857 5.65429 1 5.65429L9.91289 5.65429L7.62037 2.97968C7.44066 2.77002 7.46494 2.45437 7.6746 2.27466C7.88427 2.09495 8.19992 2.11923 8.37963 2.32889L11.3796 5.82889C11.5401 6.01614 11.5401 6.29244 11.3796 6.47968L8.37963 9.97968C8.19992 10.1893 7.88427 10.2136 7.6746 10.0339C7.46494 9.8542 7.44066 9.53855 7.62037 9.32889L9.91289 6.65429L1 6.65429C0.723857 6.65429 0.5 6.43043 0.5 6.15429Z",fill:"black"})," ")," ",o.createElement("defs",null," ",o.createElement("clipPath",{id:"clip0_2262_1754"}," ",o.createElement("rect",{width:"12",height:"12",fill:"white",transform:"translate(0 12.1543) rotate(-90)"})," ")," ")," "))),e.showImageCount&&o.createElement(i.OK,{tag:"span",className:"gscr_counter"},G.activeSlide+1,"/",d.length)),Y());case"imagesMobi":return d.length<1?null:o.createElement("div",{"data-type":e.topDataType,className:P?T:_},o.createElement("div",{className:"posR"},d&&d.length>0&&o.createElement("ul",{ref:O,onScroll:e=>j(e),"data-carousel":N,className:`${"scroll"==C?"scrollSmooth":""} ${P?e.adInnerClassDesktop:e.adInnerClassMobile} SingleScroll`},d.map(((t,a)=>o.createElement("li",{key:a,className:"hover",onClick:e=>U(0,S,a,t.type)},o.createElement(r.A,g({src:t[e.lazyloadKeys.src],alt:t[e.lazyloadKeys.title],title:t[e.lazyloadKeys.title],"data-lazy":!(a<1)||u,type:"image",style:{width:"100%"}},t.onClickUrl?{imageOnClick:e=>V(e,t)}:{},{autoFit:e.lazyloadKeys.autoFit,imagepostfix:e.imagePostfix,autoFitMobile:e.lazyloadKeys.autoFitMobile})))))),e.showNextPrevButton&&d.length>1&&o.createElement(o.Fragment,null,G.activeSlide>0&&o.createElement("span",{className:"ScBtn prev",onClick:()=>z("prev",1,!1)},o.createElement("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}," ",o.createElement("g",{id:" Arrow/Down ↓",clipPath:"url(#clip0_2262_1750)"}," ",o.createElement("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 6.15429C11.5 5.87815 11.2761 5.65429 11 5.65429L2.08711 5.65429L4.37963 2.97968C4.55934 2.77002 4.53506 2.45437 4.3254 2.27466C4.11573 2.09495 3.80008 2.11923 3.62037 2.32889L0.620372 5.82889C0.459876 6.01614 0.459876 6.29244 0.620372 6.47968L3.62037 9.97968C3.80008 10.1893 4.11573 10.2136 4.3254 10.0339C4.53506 9.8542 4.55934 9.53855 4.37963 9.32889L2.08711 6.65429L11 6.65429C11.2761 6.65429 11.5 6.43043 11.5 6.15429Z",fill:"black"})," ")," ",o.createElement("defs",null," ",o.createElement("clipPath",{id:"clip0_2262_1750"}," ",o.createElement("rect",{width:"12",height:"12",fill:"white",transform:"matrix(4.37114e-08 -1 -1 -4.37114e-08 12 12.1543)"})," ")," ")," ")),G.activeSlidez("next",1,!1)},"Next ",o.createElement("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}," ",o.createElement("g",{id:" Arrow/Down ↓",clipPath:"url(#clip0_2262_1754)"}," ",o.createElement("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 6.15429C0.5 5.87815 0.723857 5.65429 1 5.65429L9.91289 5.65429L7.62037 2.97968C7.44066 2.77002 7.46494 2.45437 7.6746 2.27466C7.88427 2.09495 8.19992 2.11923 8.37963 2.32889L11.3796 5.82889C11.5401 6.01614 11.5401 6.29244 11.3796 6.47968L8.37963 9.97968C8.19992 10.1893 7.88427 10.2136 7.6746 10.0339C7.46494 9.8542 7.44066 9.53855 7.62037 9.32889L9.91289 6.65429L1 6.65429C0.723857 6.65429 0.5 6.43043 0.5 6.15429Z",fill:"black"})," ")," ",o.createElement("defs",null," ",o.createElement("clipPath",{id:"clip0_2262_1754"}," ",o.createElement("rect",{width:"12",height:"12",fill:"white",transform:"translate(0 12.1543) rotate(-90)"})," ")," ")," "))),e.showImageCount&&o.createElement(i.OK,{tag:"span",className:"gscr_counter"},G.activeSlide+1,"/",d.length)),Y());case"list":return n.A.isEmptyObject(d)?null:o.createElement(o.Fragment,null,o.createElement("div",{"data-type":e.topDataType,className:`${P?T:_} posR`},"transform"==C?o.createElement("div",{className:e.overFlowvisible,style:{overflow:"hidden"}},o.createElement("ul",{ref:O,onTouchStart:e=>H(e),onTouchEnd:e=>F(e),id:e.contentId,"data-section":N,"data-carousel":N,"data-type":e.dataType,className:`${P?e.adInnerClassDesktop:e.adInnerClassMobile} overXvisible`},d&&d.map(((e,t)=>e)))):o.createElement("ul",{ref:O,onTouchStart:e=>H(e),onTouchEnd:e=>F(e),id:e.contentId,"data-section":N,"data-carousel":N,"data-type":e.dataType,className:`${"scroll"==C?"scrollSmooth":""} ${P?e.adInnerClassDesktop:e.adInnerClassMobile} overXhidden`},d&&d.map(((e,t)=>e))),(e.showNextPrevButton&&d.length>1||e.showNextPrevAl)&&o.createElement(o.Fragment,null,(G.activeSlide>0||e.showNextPrevAl)&&o.createElement("span",{className:"ScBtn prev",onClick:()=>z("prev",1,!1)},o.createElement("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}," ",o.createElement("g",{id:" Arrow/Down ↓",clipPath:"url(#clip0_2262_1750)"}," ",o.createElement("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 6.15429C11.5 5.87815 11.2761 5.65429 11 5.65429L2.08711 5.65429L4.37963 2.97968C4.55934 2.77002 4.53506 2.45437 4.3254 2.27466C4.11573 2.09495 3.80008 2.11923 3.62037 2.32889L0.620372 5.82889C0.459876 6.01614 0.459876 6.29244 0.620372 6.47968L3.62037 9.97968C3.80008 10.1893 4.11573 10.2136 4.3254 10.0339C4.53506 9.8542 4.55934 9.53855 4.37963 9.32889L2.08711 6.65429L11 6.65429C11.2761 6.65429 11.5 6.43043 11.5 6.15429Z",fill:"black"})," ")," ",o.createElement("defs",null," ",o.createElement("clipPath",{id:"clip0_2262_1750"}," ",o.createElement("rect",{width:"12",height:"12",fill:"white",transform:"matrix(4.37114e-08 -1 -1 -4.37114e-08 12 12.1543)"})," ")," ")," ")),(G.activeSlide+Math.trunc(e.carousalItem)<=e.contents.length-1||e.showNextPrevAl)&&o.createElement("span",{className:"ScBtn next",onClick:()=>z("next",1,!1)},"Next ",o.createElement("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}," ",o.createElement("g",{id:" Arrow/Down ↓",clipPath:"url(#clip0_2262_1754)"}," ",o.createElement("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 6.15429C0.5 5.87815 0.723857 5.65429 1 5.65429L9.91289 5.65429L7.62037 2.97968C7.44066 2.77002 7.46494 2.45437 7.6746 2.27466C7.88427 2.09495 8.19992 2.11923 8.37963 2.32889L11.3796 5.82889C11.5401 6.01614 11.5401 6.29244 11.3796 6.47968L8.37963 9.97968C8.19992 10.1893 7.88427 10.2136 7.6746 10.0339C7.46494 9.8542 7.44066 9.53855 7.62037 9.32889L9.91289 6.65429L1 6.65429C0.723857 6.65429 0.5 6.43043 0.5 6.15429Z",fill:"black"})," ")," ",o.createElement("defs",null," ",o.createElement("clipPath",{id:"clip0_2262_1754"}," ",o.createElement("rect",{width:"12",height:"12",fill:"white",transform:"translate(0 12.1543) rotate(-90)"})," ")," ")," "))),e.showImageCount&&o.createElement(i.OK,{tag:"span",className:"gscr_counter"},G.activeSlide+1,"/",d.length),Y()));case"listScroll":return d.length<1?null:o.createElement("div",{"data-type":e.topDataType,className:`${P?T:_} posR`},o.createElement("ul",{ref:O,onScroll:e=>j(e),id:e.contentId,"data-section":N,"data-carousel":N,"data-type":e.dataType,className:`${"scroll"==C?"scrollSmooth":""} ${P?e.adInnerClassDesktop:e.adInnerClassMobile}`},d&&d.map(((e,t)=>e))),(e.showNextPrevButton&&d.length>1||e.showNextPrevAl)&&o.createElement(o.Fragment,null,(G.activeSlide>0||e.showNextPrevAl)&&o.createElement("span",{className:"ScBtn prev",onClick:()=>z("prev",1,!1)},o.createElement("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}," ",o.createElement("g",{id:" Arrow/Down ↓",clipPath:"url(#clip0_2262_1750)"}," ",o.createElement("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 6.15429C11.5 5.87815 11.2761 5.65429 11 5.65429L2.08711 5.65429L4.37963 2.97968C4.55934 2.77002 4.53506 2.45437 4.3254 2.27466C4.11573 2.09495 3.80008 2.11923 3.62037 2.32889L0.620372 5.82889C0.459876 6.01614 0.459876 6.29244 0.620372 6.47968L3.62037 9.97968C3.80008 10.1893 4.11573 10.2136 4.3254 10.0339C4.53506 9.8542 4.55934 9.53855 4.37963 9.32889L2.08711 6.65429L11 6.65429C11.2761 6.65429 11.5 6.43043 11.5 6.15429Z",fill:"black"})," ")," ",o.createElement("defs",null," ",o.createElement("clipPath",{id:"clip0_2262_1750"}," ",o.createElement("rect",{width:"12",height:"12",fill:"white",transform:"matrix(4.37114e-08 -1 -1 -4.37114e-08 12 12.1543)"})," ")," ")," ")),(G.activeSlide+Math.trunc(e.carousalItem)<=e.contents.length-1||e.showNextPrevAl)&&o.createElement("span",{className:"ScBtn next",onClick:()=>z("next",1,!1)},"Next ",o.createElement("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"}," ",o.createElement("g",{id:" Arrow/Down ↓",clipPath:"url(#clip0_2262_1754)"}," ",o.createElement("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 6.15429C0.5 5.87815 0.723857 5.65429 1 5.65429L9.91289 5.65429L7.62037 2.97968C7.44066 2.77002 7.46494 2.45437 7.6746 2.27466C7.88427 2.09495 8.19992 2.11923 8.37963 2.32889L11.3796 5.82889C11.5401 6.01614 11.5401 6.29244 11.3796 6.47968L8.37963 9.97968C8.19992 10.1893 7.88427 10.2136 7.6746 10.0339C7.46494 9.8542 7.44066 9.53855 7.62037 9.32889L9.91289 6.65429L1 6.65429C0.723857 6.65429 0.5 6.43043 0.5 6.15429Z",fill:"black"})," ")," ",o.createElement("defs",null," ",o.createElement("clipPath",{id:"clip0_2262_1754"}," ",o.createElement("rect",{width:"12",height:"12",fill:"white",transform:"translate(0 12.1543) rotate(-90)"})," ")," ")," "))),e.showImageCount&&o.createElement(i.OK,{tag:"span",className:"gscr_counter"},G.activeSlide+1,"/",d.length),Y());default:return console.log("Content type is wrong"),""}}x.contextTypes={detect_isMobile:u().func},x.defaultProps={contentType:"images",behavior:"fade",activeSlide:0,firstImageLoad:!1,pagerImgLazyLoad:!0,showNextPrevButton:!0,showNextPrevAl:!1,itemMove:1,isKeySlide:!1,carousalItem:1,imagePostfix:"?tr=w-360",autoSlide:0,lazyloadKeys:{src:"image",title:"title",autoFitMobile:!1,autoFit:!0},pager:{display:!1,type:"thumbnail",content:[],size:"?tr=h-60",scroll:!0,className:"",classActive:"active",activeColor:"255,255,255"},caption:{display:!1,key:"name"},contents:[],dataTrackSection:"",dataTrackComponent:"",dataType:"",topDataType:"css-carousel",contentId:"",adOuterClassDesktop:"",adOuterClassMobile:"",adInnerClassDesktop:"",adInnerClassMobile:"",showImageCount:!1,firstImageVisibility:!1,overFlowvisible:"",autoSlideRepeat:!0,isHref:!1,isHrefHandler:!1};const w=x},2651:(e,t,a)=>{a.d(t,{A:()=>r});var i=a(6314),l=a.n(i)()((function(e){return e[1]}));l.push([e.id,".specificationTab .tabItems{display:flex;flex-direction:column-reverse;margin-bottom:39px}.specificationTab .tabItems>ul{overflow-x:auto;-ms-overflow-style:none;scrollbar-width:none;white-space:nowrap;margin:32px -16px 0;padding:0 16px}.specificationTab .tabItems>ul::-webkit-scrollbar{display:none}.specificationTab .tabItems>ul .tab{display:inline-block;white-space:nowrap}.specificationTab .tabItems>ul .tab span{cursor:pointer;display:block;padding:8.206px 19.148px;border-radius:5.471px;border:.684px solid #dedede;font-size:12px}.specificationTab .tabItems>ul .tab:last-child{margin-right:0}.specificationTab .tabItems>ul .tab.active span{background:#181168;color:#fff}.specificationTab .specification{display:flex;flex-direction:column;gap:32px}.specificationTab .specification .tittleContainer{display:flex;flex-direction:row;margin-bottom:32px;gap:32px}.specificationTab .specification .tittleContainer .title{color:#787878;font-size:14px;font-weight:400;line-height:14px;margin-bottom:0;text-transform:uppercase}.specificationTab .specification .tittleContainer .titleBorder{width:1022px;height:1px;background:rgba(0,0,0,.1);margin-top:8px;flex:1}.specificationTab .specification .specsItem{display:grid;grid-template-columns:132px 1fr;margin-bottom:24px;gap:24px;color:#000;font-size:16px;font-weight:400;line-height:16px}.specificationTab .specification .specsItem .value{line-height:24px}@media screen and (min-width: 768px){.specificationTab .tabItems{flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:37px}.specificationTab .tabItems>ul{display:flex;flex-direction:row;gap:12px;margin:0;padding:0}.specificationTab .tabItems>ul .tab{align-items:center;gap:10px}.specificationTab .tabItems>ul .tab span{padding:12px 28px;border-radius:8px;border:1px solid #dedede;color:#000;font-size:16px}.specificationTab .tabItems>ul .tab.active span{background:#181168;color:#fff}.specificationTab .specification .tittleContainer{display:flex}.specificationTab .specification .tittleContainer .titleBorder{justify-content:center;align-items:center}.specificationTab .specification .specsItem{gap:48px;grid-template-columns:255px 1fr}}",""]);const r=l},3511:(e,t,a)=>{var i=a(5072),l=a.n(i),r=a(7825),o=a.n(r),s=a(7659),n=a.n(s),c=a(5056),p=a.n(c),d=a(540),u=a.n(d),h=a(1113),g=a.n(h),m=a(3605),f={};f.styleTagTransform=g(),f.setAttributes=p(),f.insert=n().bind(null,"body"),f.domAPI=o(),f.insertStyleElement=u();l()(m.A,f),m.A&&m.A.locals&&m.A.locals},3531:(e,t,a)=>{a.d(t,{A:()=>r});var i=a(6314),l=a.n(i)()((function(e){return e[1]}));l.push([e.id,".specifications{margin-top:120px}.specifications .truckSpecs{margin-bottom:28px}.specifications .specificationTab .tabItems .tab{font-weight:500;margin-right:8.21px}@media screen and (min-width: 768px){.specifications{margin-top:120px}}",""]);const r=l},3605:(e,t,a)=>{a.d(t,{A:()=>r});var i=a(6314),l=a.n(i)()((function(e){return e[1]}));l.push([e.id,'.specs-sticky header{display:none;transition:all .3s linear}.truckSpecs .btnGroup{display:flex;gap:20px;justify-content:flex-start;flex-direction:column-reverse;align-items:center}.truckSpecs .btnGroup a,.truckSpecs .btnGroup .downloadCta{color:#000;font-size:16px;font-weight:500;line-height:normal;text-decoration-line:underline;display:flex;align-items:center;justify-content:center;gap:4px}.truckSpecs .btnGroup a .pdfIcon,.truckSpecs .btnGroup .downloadCta .pdfIcon{width:25px;height:25px}.truckSpecs .btnGroup .downloadCta{background-color:rgba(0,0,0,0);border:none;padding:initial;width:initial;cursor:pointer}.truckSpecs .btnGroup button{color:#fff;font-size:16px;font-weight:500;line-height:22.4px;padding:12px 24px;margin-bottom:0;border-radius:24px;width:100%}.truckSpecs .truckSpecHead{display:flex;justify-content:flex-start;flex-direction:column;margin-bottom:64px}.truckSpecs .truckSpecHead h1{text-align:start;margin-bottom:40px}.truckSpecs .truckSpecHead .btnGroup .BookBtn{width:100%}.truckSpecs .specsTabs{position:relative;white-space:nowrap;overflow:auto;margin:0 -16px 20px;padding:0 16px;width:calc(100% + 26px);padding-bottom:2px}.truckSpecs .specsTabs::-webkit-scrollbar{display:none}.truckSpecs .specsTabs:after{content:"";height:2px;width:100%;position:absolute;bottom:0;left:0;background:#f3f3f3}.truckSpecs .specsTabs li{display:inline-block}.truckSpecs .specsTabs li a{color:#141414;font-size:14px;font-weight:400;padding:14px 9px;display:block;margin:0;position:relative}.truckSpecs .specsTabs li.active a{color:#0533d5;font-weight:500}.truckSpecs .specsTabs li.active a::after{background:#0533d5;height:2px;width:100%;position:absolute;bottom:-2px;left:0;content:"";z-index:1}.truckSpecs .specsTabs .btnGroup{flex:1;display:none;align-items:center;justify-content:flex-end}.truckSpecs .specsTabs .btnGroup .downloadCta .pdfIcon{display:inline;vertical-align:middle;margin-right:11px}.truckSpecs .specsbox.sticky{top:0;left:0;width:100%;position:fixed;border-bottom:1px solid rgba(0,0,0,.1);background:#fff;box-shadow:0px 2px 16px 0px rgba(0,0,0,.08);backdrop-filter:blur(8px);z-index:1000;padding:16px 0}.truckSpecs .specsbox.sticky .specsTabs{margin:0 auto;border:none;align-items:center;width:100%}.truckSpecs .specsbox.sticky .specsTabs:after{display:none}.truckSpecs .specsbox.sticky .specsTabs .btnGroup{display:flex;flex-direction:row}.truckSpecs .specsbox.sticky .specsTabs li a{color:#787878;font-size:16px;font-weight:400;line-height:16px;padding:10px;text-transform:uppercase}.truckSpecs .specsbox.sticky .specsTabs li.active a{color:#0533d5;font-size:16px;font-weight:600;line-height:16px}.truckSpecs .specsContainer{display:flex;overflow:auto;gap:12px;padding:0 16px}.truckSpecs .specsContainer::-webkit-scrollbar{display:none}.truckSpecs .specsContainer .specsCard{height:175px;flex:0 0 120px;border:1.003px solid #e3e9ff;border-radius:23px;padding:14px 6px 10px 13px;background:url("https://www.ashokleyland.com/pwa/img/FE/specs-card-vg.svg") no-repeat bottom right;position:relative}.truckSpecs .specsContainer .specsCard .text{color:#535b62;font-size:8px;font-weight:600;line-height:12px;letter-spacing:.64px;margin-bottom:7px}.truckSpecs .specsContainer .specsCard h4{color:#181168;font-size:32px;font-weight:600;line-height:34px}.truckSpecs .specsContainer .specsCard h4 .unitTxt{font-size:16px;font-weight:400;margin-bottom:0}.truckSpecs .specsContainer .specsCard .icon{position:absolute;width:41px;right:10px;bottom:10px}.truckSpecs .specsContainer .specsCard .icon img{display:block;width:100%}.truckSpecs .specsContainer .specsCard .viewLink{display:block;color:#0533d5;font-size:22.145px;padding:0 30px 0 0;font-weight:500;line-height:28.187px}.truckSpecs .specsContainer .specsCard.viewall{border-color:#889ff1}.truckSpecs .pSpecs{display:flex;gap:25px;flex-direction:column}.truckSpecs .pSpecs p,.truckSpecs .pSpecs div{font-size:18px;color:#000}@media screen and (min-width: 768px){.truckSpecs .truckSpecHead{display:flex;justify-content:space-between;align-items:center;flex-direction:row;margin-bottom:32px}.truckSpecs .truckSpecHead h1{margin-bottom:0}.truckSpecs .truckSpecHead .btnGroup{display:flex;gap:16px;justify-content:flex-start;flex-direction:row}.truckSpecs .truckSpecHead .btnGroup .BookBtn{width:156px}.truckSpecs .truckSpecHead .btnGroup .BookBtn .submitButton:hover{background:#042bb3}.truckSpecs .specsTabs{display:flex;gap:32px;border-bottom:1px solid #f3f3f3;margin:0 0 44px;width:100%}.truckSpecs .specsTabs li a{padding:10px 10px 26px;color:#787878;font-size:20px;line-height:20px}.truckSpecs .specsTabs li.active a{font-weight:600}.truckSpecs .specsTabs li.active a::after{bottom:0}.truckSpecs .specsContainer{gap:20px;padding:16px}.truckSpecs .specsContainer .specsCard{flex:1 0 200px;height:295px;border:1.003px solid #e3e9ff;border-radius:23px;padding:26px 24px;position:relative;box-shadow:0px 4.014px 20.069px 0px rgba(0,0,0,.05);background-image:none}.truckSpecs .specsContainer .specsCard .text{font-size:14.048px;line-height:21.073px;letter-spacing:1.124px;margin-bottom:12px;text-transform:uppercase;display:block}.truckSpecs .specsContainer .specsCard .icon{width:78px;right:10px;bottom:20px}.truckSpecs .specsContainer .specsCard h4{color:#000;font-size:48px;line-height:60.208px}.truckSpecs .specsContainer .specsCard h4 .unitTxt{font-size:28.097px;font-weight:400;margin-bottom:0}.truckSpecs .specsContainer .specsCard .viewLink{color:#0533d5;display:block;font-size:42.145px;padding:21px 26px 0 0;font-weight:600;line-height:54.187px}.truckSpecs .specsContainer .specsCard .viewLink .icon{width:41px;bottom:30px;right:20px}.truckSpecs .pSpecs{gap:42px;flex-direction:row-reverse}}@media screen and (max-width: 768px){.truckSpecs .specsbox.sticky .specsTabs .btnGroup{display:none}}',""]);const r=l},3719:(e,t,a)=>{a.r(t),a.d(t,{default:()=>O});var i=a(2326),l=a(5556),r=a.n(l),o=a(6540);const s={pageContent:[{component:a(4282).A,propAttr:{settings:[{prop:"data",apiKey:"truckSpecs"},{prop:"variant",apiKey:"variant"},{prop:"productId",apiKey:"productId"},{prop:"handleVariant",funcName:"handleVariant"},{prop:"variants",apiKey:"variants"}]}}]};var n=a(6706),c=a(6245),p=a(5072),d=a.n(p),u=a(7825),h=a.n(u),g=a(7659),m=a.n(g),f=a(5056),y=a.n(f),b=a(540),v=a.n(b),x=a(1113),w=a.n(x),S=a(3531),C={};C.styleTagTransform=w(),C.setAttributes=y(),C.insert=m().bind(null,"body"),C.domAPI=h(),C.insertStyleElement=v();d()(S.A,C);S.A&&S.A.locals&&S.A.locals;function k(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function T(e){for(var t=1;t{const t=e.match(/₹\s\d+\.\d+/g);return t&&t[0]===e.trim()},L=(e,t,a)=>{const i="undefined"!=typeof window&&window&&window.__userLocation?.country,l=e?.userLocation?.countryTag||"undefined"!=typeof window&&window&&window.__userLocation?.countryTag,r=`${e?.params?.make}/${e?.params?.model}/${e?.params?.variant}`,o={type:"pdpspecs",slug:c.A.getUrlPathName(r,l),productId:e.location.query?.productId,location:e?.userLocation?.country||i},s={Authorization:`Bearer ${e?.userLocation?.authkey||window.__userLocation?.authkey||""}`};n.A.POSTAPI("GetData",o,t,!1,{headers:s},!0).then((i=>{if(!t&&void 0!==i.errorResp)return void a(i);if(i.error)return void a({error:!0,path:"/",code:302});i=i?.data;const l={seo:i?.seo||E.seo,shimmer:!1,criticalcss:"Specifications",chunkJs:"Specifications",schema:i?.schema||[],dataLayer:i?.dataLayer||E.dataLayer,truckSpecs:T(T({},i?.specs),{},{activeIndex:i?.specs?.tabs?.findIndex((e=>"specifications"===e?.title?.toLowerCase())),downloadBroucher:i?.downloadBroucher,booknow:i?.booknow,variants:i?.variant?.map((t=>T(T({},t),{},{text:t.value,value:"powersolution"===e?.params?.make?t.value:t.value+" | "+t.price,subtag:{cls:"subtag",title:"powersolution"===e?.params?.make?"":`${A(t.price)?"price on request":"Onwards"} ${A(t.price)?"":`${t.price}`}`}})))}),variants:i?.variant?.map((e=>T(T({},e),{},{text:e.value}))),variant:o.slug,productId:o.productId};t||(l.dataLayer=c.A.setDataLayer(l.dataLayer,l.dataLayer.page_type,!1)),l.seo.path="",l.seo.type="website",a(l)})).catch((e=>{a({error:!0,errorResp:e.toString()})}))},N={data:r().object,detect_isMobile:r().func};class I extends o.Component{static fetchData(e,t){L(e,!1,(function(e){t(e)}))}constructor(e,t){super(e,t),this.state=this.context.data||window.__INITIAL_STATE__||E,this.handleVariant=this.handleVariant.bind(this)}componentDidMount(){null==window.__INITIAL_STATE__&&this._fetchData(this.props),window.__INITIAL_STATE__=null}_fetchData(e){const t=this;t.setState(E),L(e,!0,(function(e){t.setState(e),c.A.animateSection(),setTimeout((function(){c.A.setMetaTags(e.seo),c.A.setDataLayer(e.dataLayer,"Specifications",!0,!0)}),10)}))}handleVariant(e){this.setState({variant:e.slug})}render(){const e=this.state;return e.shimmer?o.createElement(i.ls,{columnCls:"container",height:150,count:3,visible:this.state.shimmer,type:"grid"}):o.createElement("div",{className:"specifications"},o.createElement("div",{className:"container"},c.A._mapRender(s.pageContent,e,this)))}}I.contextTypes=N,I.defaultProps=E;const O=I},4282:(e,t,a)=>{a.d(t,{A:()=>R});var i=a(6540),l=a(5319),r=a(81),o=a(2830),s=a(4037),n=a.n(s),c=a(9090),p=a(7832),d=a(6706),u=a(8711),h=a(5072),g=a.n(h),m=a(7825),f=a.n(m),y=a(7659),b=a.n(y),v=a(5056),x=a.n(v),w=a(540),S=a.n(w),C=a(1113),k=a.n(C),T=a(2651),_={};_.styleTagTransform=k(),_.setAttributes=x(),_.insert=b().bind(null,"body"),_.domAPI=f(),_.insertStyleElement=S();g()(T.A,_);T.A&&T.A.locals&&T.A.locals;var E=a(5556),A=a.n(E);const L={variants:A().array,data:A().object,productId:A().string,variant:A().string,handleVariant:A().func};function N(e){const{variants:t,data:a,productId:l}=e,[o,s]=(0,i.useState)(t.find((t=>t.slug===e.variant))?.value),[n,c]=(0,i.useState)(a);return i.createElement("div",{className:"specificationTab "},t.length>0&&i.createElement("div",{className:"tabItems"},i.createElement(u.A,{id:"productSpecs",name:"productSpecs",placeholder:"Select Variant",cls:"filter dropdown",setValueBlank:!1,textAttr:"text",inputType:"text",valueSelector:"text",generateRandomString:!1,selectedValue:o,cb:async t=>{const a=t.data("gsTaVal");e.handleVariant(a);const i={Authorization:`Bearer ${window?.__userLocation?.authkey||""}`},r={slug:a.slug,type:"pdpspecs",variantId:a.id,productId:l},o=await d.A.POSTAPI("GetData",r,!0,!1,{headers:i},!0);o?.data?.specs?.specificationData&&(c(o.data.specs.specificationData),s(a.value))},allList:t,value:o,moveToTopInMobi:!0,width:"max-content"})),i.createElement("div",{className:"specification"},n?.items?.map(((e,t)=>i.createElement("div",{id:e.title?.replaceAll(" ",""),key:t},i.createElement("div",{className:"tittleContainer"},i.createElement(r.A,{tag:"p",className:"title"},e.title),i.createElement(r.A,{tag:"p",className:"titleBorder"})),i.createElement("ul",null,e.items?.map(((e,t)=>i.createElement("li",{className:"specsItem",key:t},i.createElement(r.A,{tag:"span",className:"text"},e.text),i.createElement(r.A,{tag:"span",className:"value"},e.value))))))))))}N.propTypes=L;a(3511);var I=a(8843);const O={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t,a,i,l,r,o,s,n="",c=0;for(e=O._utf8_encode(e);c>2,r=(3&t)<<4|(a=e.charCodeAt(c++))>>4,o=(15&a)<<2|(i=e.charCodeAt(c++))>>6,s=63&i,isNaN(a)?o=s=64:isNaN(i)&&(s=64),n=n+this._keyStr.charAt(l)+this._keyStr.charAt(r)+this._keyStr.charAt(o)+this._keyStr.charAt(s);return n},decode:function(e){var t,a,i,l,r,o,s="",n=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");n>4,a=(15&l)<<4|(r=this._keyStr.indexOf(e.charAt(n++)))>>2,i=(3&r)<<6|(o=this._keyStr.indexOf(e.charAt(n++))),s+=String.fromCharCode(t),64!=r&&(s+=String.fromCharCode(a)),64!=o&&(s+=String.fromCharCode(i));return s=O._utf8_decode(s)},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",a=0;a127&&i<2048?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t},_utf8_decode:function(e){for(var t="",a=0,i=0,l=0,r=0;a191&&i<224?(l=e.charCodeAt(a+1),t+=String.fromCharCode((31&i)<<6|63&l),a+=2):(l=e.charCodeAt(a+1),r=e.charCodeAt(a+2),t+=String.fromCharCode((15&i)<<12|(63&l)<<6|63&r),a+=3);return t}},P=O;var D=a(6245),G=a(1607),B=a(1166),j=a(9516),z={};z.styleTagTransform=k(),z.setAttributes=x(),z.insert=b().bind(null,"body"),z.domAPI=f(),z.insertStyleElement=S();g()(j.A,z);j.A&&j.A.locals&&j.A.locals;var V=a(4074),$=a.n(V),H=a(4692);class F extends i.Component{constructor(e,t){super(e,t),this.state={props:e,activeClsOn:e.activeClsOn,obj:this.imageData(e.images),hotSportObject:{},slideNo:1,sectionName:"all",prevSectionName:"",nextSectionName:"Exterior",recentVisitedSection:"",tab:e.tab,variants:e?.variants},this.toggleTab=this.toggleTab.bind(this),this.closeHotSpotPopUp=this.closeHotSpotPopUp.bind(this),this.tabHandler=this.tabHandler.bind(this),this.showMoreLinks=this.showMoreLinks.bind(this),this.setGtmTracking=this.setGtmTracking.bind(this),this.handleDropdown=this.handleDropdown.bind(this)}toggleTab(e,t,a){let i=this;this.setState({activeClsOn:t});let l=H(e.target).data("track-section");if("360 View"==l?H('[data-section="feeltab1"]').removeClass("hide"):H('[data-section="feeltab1"]').addClass("hide"),setTimeout((function(){i.tabHandler("pictureGallery",a,l)}),10),this.props.isLinkedTab){let e=this.state.obj.tabimage.filter((e=>{if(e.tabTitle===t)return e}));e[0]&&e[0].viewAllDto&&e[0].viewAllDto.url&&B.N.push(e[0].viewAllDto.url)}}setGtmTracking(e,t){D.A.setGtmTracking(e,t)}tabHandler(e,t,a){var i=this;let l=H('[data-section="'+e+'"]').find('.colorGallery div.gsc-ta-active [data-type="carousel-gallery"]');setTimeout((function(){if(void 0!==l.data("gsp_carousel")){let t={};l.data("carousel");t.slideNo=1,t.sectionName=a,t.hotSportObject={},t.recentVisitedSection=i.state.sectionName,i.setState(t),l.data("gsp_carousel").refresh();let r=H('[data-section="'+e+'"]').find('div [data-track-section="'+t.recentVisitedSection+'"] [data-type="carousel-gallery"]').data("gsp_carousel");null!=r&&r.goToSlide(1),l.data("gsp_carousel").getActiveSlide().activeIndex>0&&l.data("gsp_carousel").goToSlide(1),0==l.data("gsp_carousel").getActiveSlide().activeIndex&&"All"!=a&&H(".prevBtn").removeClass("hide"),l.data("gsp_carousel").getActiveSlide().activeIndex!=l.data("gsp_carousel").getTotalSlideCount()-1&&H(".nextBtn").addClass("hide")}else if("360 View"==a){H("#pictureGallery360View").find("li").length<2&&H('[data-section="feeltab1"]').addClass("hide")}}),0);let r=H('[data-section="'+e+'"]');r.find("[data-view-index]").addClass("hide"),r.find('[data-view-index="'+t+'"]').removeClass("hide")}getHotSpotsDetail(e){let t=[];for(let a=0;at.allimage.push(e))),"image-color"==e[a].type&&(t.colors=e[a]),"360 View"==e[a].tabTitle&&(t.ftcObj=e[a]),t.tabimage.push(e[a]));return t}bindEventsAfterLoad(e){let t=this;Promise.resolve().then(function(a){let i="Feel The Car"==e.sectionName?"360 View":e.sectionName;H("[data-type=picturegallerypopup]").length>0&&(t.buildCarousel(H("[data-type=picturegallerypopup]")),null!=e&&null!=e.slideNo&&null!=i&&t.toggleContent(H('[data-carousel="'+i+'"]'),e.slideNo))}.bind(null,a)).catch(a.oe)}showMoreLinks(e,t){1==t?(e.stopPropagation(),H(".morelinks").show()):H(".morelinks").hide()}async handleDropdown(e){const t=e.data("gsTaVal");this.props.handleVariant(t);const a={Authorization:`Bearer ${window?.__userLocation?.authkey||""}`},i={slug:t.slug,type:"pdpgallery",variantId:t.id,productId:this.props.productId},l=await d.A.POSTAPI("GetData",i,!0,!1,{headers:a},!0),r=[{tabTitle:l.interior?.title,isActive:!1,isTabbin:!0,isWidget:!0,isToIncludeAll:!0,type:"image",title:l.interior?.title,list:l.interior?.data?.map((e=>({type:"interior",url:e.image,title:l.interior?.title,popupImage:e.image,thumbNail:e.thumbnail,tabImage:e.image})))},{tabTitle:l.exterior?.title,isActive:!1,isTabbin:!0,isWidget:!0,isToIncludeAll:!0,type:"image",title:l.exterior?.title,list:l.exterior?.data?.map((e=>({type:"exterior",url:e.image,title:l.exterior?.title,popupImage:e.image,thumbNail:e.thumbnail,tabImage:e.image})))},{tabTitle:l.threesixty?.iframeurl?"360 View":"",isActive:!1,isTabbin:!0,isWidget:!1,isToIncludeAll:!1,type:"iframe",ftcDto:{id:3061,ftc:[{category:"interior360View",url:l.threesixty?.iframeurl,isAvailable:0}],sounds:[],isTabbin:!0},title:l.threesixty?.title,ftcCtaText:"Explore 360º View"}];this.setState({obj:this.imageData(r),product:t.value})}render(){const{detect_isMobile:e}=this.context,t=e();let a=this.props,s=this.state.props.images,n=this.state.obj.colors,c=this.state.obj.ftcObj,p=this.state.obj.tabs,d=this.state.obj.allimage,h=this.state.obj.tabimage,g=function(e,t){let l=[],s=c&&c.list?c.list:{},n=s.length>0?{display:!0,type:"colors",content:s,size:"?tr=h-60",scroll:!1,className:"gscr_slideOuter gscr_pagerwrapper gscr_pagercontent gsc_thin_scroll"}:{display:!0,type:"html",content:(()=>{let t=[];return e&&e.ftcDto&&e.ftcDto.ftc&&e.ftcDto.ftc.length>1&&e.ftcDto.ftc.map(((e,a)=>t.push(i.createElement(r.A,{tag:"span",className:"secondaryButton",key:a},"interior360View"==e.category?"Interior":"Exterior")))),t})(),scroll:!1,className:"feelTheCar"};return i.createElement("div",{key:"ftc","data-track-section":"360 View",className:""+("360 View"==t.state.activeClsOn?"gsc-ta-content gsc-ta-active":"gsc-ta-content "+(t.props.tab?"":"gsc-ta-active"))},i.createElement(G.A,{dataTrackSection:"PictureGallery",dataTrackComponent:"360 View",contentType:"list",adInnerClassDesktop:"boxshoadowInset",adInnerClassMobile:"boxshoadowInset",dataType:"carousel-gallery",contentId:"pictureGallery360View",contents:(e&&e.ftcDto&&e.ftcDto.ftc&&e.ftcDto.ftc.map(((e,r)=>l.push(i.createElement("li",{key:r,"data-gscr-thumb":e.url,onClick:e=>t.showMoreLinks(e,"iframe")},t.state.hotSportObject&&!D.A.isEmptyObject(t.state.hotSportObject)&&i.createElement("div",{className:"leadpopup_point"},i.createElement("h4",null,t.state.hotSportObject.title),i.createElement("span",{className:"gsc_closeBtn",onClick:t.closeHotSpotPopUp},"×"),i.createElement("div",null,t.state.hotSportObject.imageUrl&&"NA"!==t.state.hotSportObject.imageUrl&&i.createElement("div",{className:"popupimg"},i.createElement(o.A,{type:"image",autoFit:!0,autoFitMobile:!0,"data-lazy":!0,src:t.state.hotSportObject.imageUrl,imagepostfix:a.imagePostfix,alt:""})),t.state.hotSportObject.description&&"NA"!==t.state.hotSportObject.description&&i.createElement("div",{"data-gsc-scroll":"true",className:"gsc_thin_scroll hotSpotDesc",dangerouslySetInnerHTML:{__html:$().sanitize(t.state.hotSportObject.description,{RETURN_TRUSTED_TYPE:!0})}}))),i.createElement("iframe",{height:"630",width:"100%",frameBorder:"0",allowFullScreen:!0,className:"youtubeVideos",id:r,"data-gsll-srcd":`${e.url}?hotSpotNonApp=yes`}))))),l),pager:n,showImageCount:!0}))};return i.createElement(r.A,{tag:this.props.secTag,className:`pictureGallerySec ${this.props.containerCls}`,"data-section":"pictureGallery","data-track-component":"colorGallery"},i.createElement(I.A,{columnCls:"gsc_col-md-12 gsc_col-sm-12",height:250,count:1,visible:this.props.shimmer}),s&&Object.keys(s).length>0&&i.createElement(i.Fragment,null,a.title&&i.createElement(l.A,{tag:a.headingTag,cls:"paddingL20",content:a.title}),a.description&&i.createElement(r.A,{tag:"p",className:"paddingL20 content",dangerouslySetInnerHTML:{__html:$().sanitize(a.description,{RETURN_TRUSTED_TYPE:!0})}}),a.tab&&i.createElement("div",{className:"galleryNavWrpr"},i.createElement("ul",{className:"galleryNav"},p&&p.map(((e,t)=>i.createElement(r.A,{tag:"li",key:t,title:e,className:this.state.activeClsOn==e?"active":"","data-track-section":e,onClick:a=>this.toggleTab(a,e,t)},e)))),this.state.variants?.length>0&&i.createElement(u.A,{id:"productGallery",name:"productGallery",placeholder:"Select Variant",cls:"filter dropdown",setValueBlank:!1,textAttr:"text",inputType:"text",valueSelector:"text",generateRandomString:!1,selectedValue:this.state.product,cb:this.handleDropdown,allList:this.state.variants,value:this.state.product,moveToTopInMobi:!0,width:"max-content"})),a.tab&&i.createElement("div",{className:"colorSlider galleryColorSlider"},i.createElement("div",{className:"colorGallery largearrow "+(n.list&&1==n.list.length?"colorSingleItem":"")},d&&t&&i.createElement("div",{"data-track-section":"All",className:"All"==this.state.activeClsOn?"gsc-ta-content gsc-ta-active":"gsc-ta-content"},i.createElement("ul",{"data-type":"carousel-gallery","data-carousel":"All",className:"boxshoadowInset"},d&&d.map(((e,t)=>e.url&&i.createElement("li",{key:`all-${t}`,"data-img-fit":"true"},i.createElement(o.A,{className:"hover",type:"image",src:e.url,imagepostfix:a.imagePostfix,alt:""+(e.title?`${e.title}`:`${e.type}`),title:""+(e.title?`${e.title}`:`${e.type}`)})))))),!t&&d&&d.length>0&&i.createElement(G.A,{contents:d&&d.length>0?d:"",imagePostfix:a.imagePostfix,adOuterClass:"modelimage largearrow",adOuterClassDesktop:"All"==this.state.activeClsOn?"gsc-ta-content gsc-ta-active":"gsc-ta-content",adOuterClassMobile:"All"==this.state.activeClsOn?"gsc-ta-content gsc-ta-active":"gsc-ta-content",firstImageLoad:!1,pagerImgLazyLoad:!1,dataTrackSection:"PictureGallery",dataTrackComponent:"All",showImageCount:!0,setGtmTracking:this.setGtmTracking,afterSlideCallback:a.afterSlideCallback,isHref:a.isHref,isHrefHandler:a.isHrefHandler,lazyloadKeys:{src:"url",title:"title",autoFitMobile:a.autoFitMobile},pager:{display:!0,type:"thumbnail",content:d,size:a.thumbNailSize,scroll:!0,className:"gscr_slideOuter gscr_pagerwrapper gscr_pagercontent gsc_thin_scroll"},caption:{display:!!a.showCaption,key:a.showCaption?"modelGroupName":""},activeSlide:a.activeSlide}),h&&h.map(((e,l)=>"360 View"!=e.tabTitle?i.createElement("div",{key:`other-${l}`,"data-track-section":e.tabTitle,className:`${this.state.activeClsOn==e.tabTitle?"gsc-ta-content gsc-ta-active":"gsc-ta-content"} ${"Colors"==e.tabTitle?"colorsTab":""}`},t?i.createElement("ul",{"data-section":"pictureGallery","data-carousel":e.tabTitle,"data-type":"carousel-gallery",className:"boxshoadowInset"},e.list&&e.list.map(((e,t)=>i.createElement("li",{key:`otherli-${t}`,"data-colorname":e.name,"data-img-fit":"true"},i.createElement(o.A,{className:"hover",type:"image",src:e.url,imagepostfix:a.imagePostfix,alt:""+(e.title?`${e.title}`:`${e.type}`),title:""+(e.title?`${e.title}`:`${e.type}`)}))))):i.createElement(G.A,{contents:e.list?e.list:"",imagePostfix:a.imagePostfix,adOuterClass:"modelimage largearrow",adOuterClassDesktop:"",adOuterClassMobile:"",dataTrackSection:"PictureGallery",dataTrackComponent:e.tabTitle,firstImageLoad:!0,pagerImgLazyLoad:!0,showImageCount:!0,lazyloadKeys:{src:"url",title:"title",autoFitMobile:a.autoFitMobile},pager:{display:!0,type:"Colours"===e.tabTitle?"colors":"thumbnail",content:e.list?e.list:"",size:a.thumbNailSize,scroll:!0,className:"gscr_slideOuter gscr_pagerwrapper gscr_pagercontent gsc_thin_scroll"},caption:{display:"Colours"===e.tabTitle||!!a.showCaption,key:"Colours"===e.tabTitle?"name":"modelGroupName"}})):"")),"360 View"==this.state.activeClsOn&&g(c,this))),!a.tab&&c&&c.ftcDto?i.createElement("div",{className:"colorSlider galleryColorSlider"},i.createElement("div",{className:"colorGallery largearrow"},g(c,this))):this.props.ftcText&&i.createElement("div",{className:a.linkClass},i.createElement("p",null,this.props.ftcText)),!a.tab&&n&&n.list&&i.createElement("div",{className:"colorGallery largearrow galleryColorSlider "+("image-color"==n.type?"colorsTab":"")},i.createElement(G.A,{contents:n&&n.list?n.list:"",imagePostfix:a.imagePostfix,adOuterClass:"modelimage largearrow",adOuterClassDesktop:"",adOuterClassMobile:"",dataTrackSection:"PictureGallery",dataTrackComponent:"",firstImageLoad:!1,showImageCount:!0,afterSlideCallback:a.afterSlideCallback,activeSlide:a.activeSlide,isHref:a.isHref,isHrefHandler:a.isHrefHandler,lazyloadKeys:{src:t?"image":"url",title:"title",autoFit:!1},pager:{display:!0,type:"colors",content:n&&n.list?n.list:"",size:"?tr=h-60",scroll:a.isScrollThumbnail,className:"gscr_slideOuter gscr_pagerwrapper gscr_pagercontent gsc_thin_scroll"},caption:{display:!0,key:"name"}}))))}}F.contextTypes={detect_isMobile:A().func},F.defaultProps={tab:!0,linkClass:"",imagePostfix:"",thumbNailSize:"",showCaption:!1,autoFitMobile:!1,containerCls:"",headingTag:"h2",title:"",description:"",isScrollThumbnail:!1,isLinkedTab:!1,secTag:"section"};var M=a(4692);function R(e){const{data:t,pSpecs:a}=e;(0,i.useEffect)((()=>{const e=document.querySelector(".specsbox"),t=document.querySelector("body"),a=e.getBoundingClientRect().top,i=window.scrollY,l=()=>{window.scrollY-i>=a?(e.classList.add("sticky"),t.classList.add("specs-sticky")):(e.classList.remove("sticky"),t.classList.remove("specs-sticky"))};return window.addEventListener("scroll",l,{passive:!0}),()=>{t.classList.remove("specs-sticky"),window.removeEventListener("scroll",l)}}),[]);const s=(t=!1)=>{D.A.setGtmButtonTracking({event:"click",componentName:"truckSpecs",sectionName:"BookNowBtn",action:"click",linkLabel:t?"brochureBtnClick":"Book_now_Btn"});const a={title:t&&"Download Brochure",successCb:t&&u,variantList:t&&e.variants,brochureClick:t};let i=document.getElementsByClassName("hashPopup"),l=D.A.getReactElement(i[0]);D.A.openHashPopup("#enquiry"),l.setState({close:!0,params:a}),M("body").addClass("gsc_Noscroll"),window.__doNotScroll=!0,window.location.hash="enquiry"},u=async e=>{let a=t?.downloadBroucher?.link;if(e?.variantData?.id){const i={type:"pdpvariant",slug:e?.variantData?.slug,variantId:e?.variantData?.id},l={Authorization:`Bearer ${window?.__userLocation?.authkey||""}`},r=await d.A.POSTAPI("GetData",i,!0,!1,{headers:l},!0);a=""!=r?.KnowYourVehicle?.downloadBroucher?.link?r?.KnowYourVehicle?.downloadBroucher?.link:t?.downloadBroucher?.link}window.open(a,"_blank")};return i.createElement("section",{className:"truckSpecs","data-animate":"scroll"},i.createElement("div",{className:"truckSpecHead"},t.title&&i.createElement(l.A,{tag:"h1",content:t.title}),i.createElement("div",{className:"btnGroup"},t?.downloadBroucher&&i.createElement("button",{disabled:!t.downloadBroucher?.link,onClick:()=>s(!0),title:t.downloadBroucher?.text,className:"downloadCta "+(t.downloadBroucher?.link?"":"btndisabled")},i.createElement(o.A,{className:"pdfIcon",src:`${n().imgPath}FE/pdf-icon.png`,alt:"icon",type:"image","data-lazy":!1}),t.downloadBroucher?.text),t.booknow&&i.createElement(c.A,{cb:()=>s(!1),props:{type:"button",title:t.booknow?.title},showBtn:!0,btnDivCls:"BookBtn",extraProps:{label:`${t.booknow?.title} `}}))),i.createElement("div",{className:"specsbox"},i.createElement("ul",{className:"specsTabs container"},t.tabs?.map(((a,l)=>i.createElement("li",{key:l,className:t.activeIndex===l?"active":""},i.createElement(p.A,{urlKey:"urlWithBackslash",default:!1,slug:`${a.url}${e.variant?"?variant="+e.variant:"?"}${e.productId?"&productId="+e.productId:""}`,title:a.title},a.title)))),i.createElement("li",{className:"btnGroup"},t?.downloadBroucher&&i.createElement("button",{disabled:!t.downloadBroucher?.link,title:t.downloadBroucher?.text,onClick:()=>s(!0),className:"downloadCta "+(t.downloadBroucher?.link?"":"btndisabled")},i.createElement(o.A,{className:"pdfIcon",src:`${n().imgPath}FE/pdf-icon.png`,alt:"icon",type:"image","data-lazy":!1}),t.downloadBroucher?.text),t.booknow&&i.createElement(c.A,{cb:()=>s(!1),props:{type:"button",title:t.booknow?.title},showBtn:!0,btnDivCls:"BookBtn",extraProps:{label:`${t.booknow?.title} `}})))),t.specs&&!e.isPowerSolution&&i.createElement("div",{className:"specsContainer"},t.specs?.tabs?.map(((e,t)=>i.createElement("div",{className:"specsCard",key:t},e.text&&i.createElement("span",{className:"text"},e.text),e.value&&i.createElement("h4",null,e.value,i.createElement("span",{className:"unitTxt"},e.unit)),e.image&&i.createElement("span",{className:"icon"},i.createElement(o.A,{src:e.image,alt:"icon",type:"image","data-lazy":!0}))))),t.specs?.items&&i.createElement("div",{className:"viewall specsCard"},i.createElement(p.A,{slug:t.specs?.items?.url,urlKey:"urlWithBackslash",title:"See Specs",className:"viewLink"},t.specs?.items?.Text," ",i.createElement("div",{className:"icon"},i.createElement(o.A,{className:"",src:`${n().imgPath}FE/specs-right-fwd-arrow.svg`,alt:"icon",type:"image","data-lazy":!1}))))),e.isPowerSolution&&a&&i.createElement("div",{className:"pSpecs"},i.createElement(o.A,{src:a.image,alt:a.title,type:"image","data-lazy":!0,height:364}),i.createElement(r.A,{tag:"div",dangerouslySetInnerHTML:{__html:$().sanitize(a.description,{RETURN_TRUSTED_TYPE:!0})}})),t.specificationData&&i.createElement(N,{data:t.specificationData,variants:t.variants,variant:e.variant,handleVariant:e.handleVariant,productId:e.productId}),e.images&&i.createElement(F,{variants:t.variants,productId:e.productId,variant:e.variant,pageParams:e.params,images:e.images,activeClsOn:"All",shimmer:e.shimmer,imagePostfix:e.colorGalleryImageSize,secTag:"div",imageSize:"?tr=w-898",handleVariant:e.handleVariant}))}},8426:(e,t,a)=>{a.d(t,{A:()=>r});var i=a(6314),l=a.n(i)()((function(e){return e[1]}));l.push([e.id,'.variantTypeahead.inputfield.dropdown:after{border-color:#0533d5;right:25px;top:26px;pointer-events:none}.variantTypeahead.inputfield input[type=text]{border-radius:22.105px;border:.921px solid #eeebeb;background:#fff;box-shadow:0px 1.842px 0px 0px #eee;height:64px;color:#0533d5;font-size:16px;font-weight:500;line-height:1.2;text-shadow:0 0 0 #0533d5;padding:18px 58px 18px 22px;text-overflow:ellipsis}.variantTypeahead.inputfield input[type=text]::placeholder{color:#0533d5}.variantTypeahead.inputfield input[type=text]::-ms-input-placeholder{color:#0533d5}.variantTypeahead .gs_ta_results{width:max-content;padding:12px;border-radius:24px;border:1px solid #f2f2f2;background:#fff;box-shadow:0px 4px 32px 0px rgba(92,96,111,.16);top:8.29px !important}.variantTypeahead .gs_ta_results li{padding:12px 16px;margin:8px 0;color:#0065d8;font-size:16px;font-weight:500;line-height:1.2;position:relative;display:flex;flex-direction:row-reverse;gap:16px;justify-content:space-between}.variantTypeahead .gs_ta_results li:after{content:"";width:100%;height:1px;background:#f2f2f2;position:absolute;bottom:-8px;left:0}.variantTypeahead .gs_ta_results li.gs_ta_choice.active{border-radius:12px}.variantTypeahead .gs_ta_results li span{margin-right:0}.variantTypeahead .gs_ta_results li .tag{font-size:16px}@media screen and (min-width: 768px){.variantTypeahead.inputfield input[type=text]{height:71px;font-size:29px;font-weight:500;line-height:32.126px}.variantTypeahead.inputfield.dropdown:after{border-color:#0533d5;border-width:0 3px 3px 0;right:30px;top:30px}.variantTypeahead .gs_ta_results li{font-size:24px;gap:64px}}',""]);const r=l},8711:(e,t,a)=>{a.d(t,{A:()=>G});var i=a(5556),l=a.n(i),r=a(6540),o=a(2511),s=a(6245),n=a(3144),c=a(5072),p=a.n(c),d=a(7825),u=a.n(d),h=a(7659),g=a.n(h),m=a(5056),f=a.n(m),y=a(540),b=a.n(y),v=a(1113),x=a.n(v),w=a(8426),S={};S.styleTagTransform=x(),S.setAttributes=f(),S.insert=g().bind(null,"body"),S.domAPI=u(),S.insertStyleElement=b();p()(w.A,S);w.A&&w.A.locals&&w.A.locals;var C=a(4074),k=a.n(C),T=a(4692);function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t{e(a)&&t.add(a)})),t};let O,P="";class D extends r.Component{constructor(e){super(e),this.state=A(A({},e),{},{allListSet:new Set(e.allList),popularListSet:new Set(e.popularList)}),this.handleOnchange=this.handleOnchange.bind(this),this.showHideDrpDown=this.showHideDrpDown.bind(this),this.handleSelection=this.handleSelection.bind(this),this.filterFn=this.filterFn.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.handleKeyPress=this.handleKeyPress.bind(this),this.predicateBy=this.predicateBy.bind(this),this.formatChoice=this.formatChoice.bind(this),this.onChangeTracking=this.onChangeTracking.bind(this),this.bodyClickFn=this.bodyClickFn.bind(this)}componentDidMount(){let e=this;e.setState({isApp:window.__isApp}),void 0!==e.props.value&&e.setState({searchInput:e.props.value}),document.body.addEventListener("click",e.bodyClickFn),e.setChoices(e.state.allListSet,e.state.popularListSet)}bodyClickFn(e){var t=this;if(t.state.typeaheadStatus&&(!(e.target.closest(".typeHeadContainer, .gs_ta_results")?1:0)&&e.target.id!=t.props.id)){void 0!==t.state.searchInputTmp&&(P=t.state.searchInputTmp),void 0!==t.props.value&&(P=t.props.value),void 0!==t.props.selectedValueCB&&t.props.selectedValueCB(e,(function(e){e.typeaheadStatus=!0,e.allList&&(e.allListSet=new Set(e.allList)),e.popularList&&(e.popularListSet=new Set(e.popularList)),t.setState(e)}));let a={typeaheadStatus:!1,searchInput:P,labelClass:""};t.setState(a)}}componentWillUnmount(){window.removeEventListener("scroll",this.handleKeyPress),document.body.removeEventListener("click",this.bodyClickFn)}UNSAFE_componentWillReceiveProps(e){const{_T:t}=this.context;let a=this,i={allListSet:new Set(e.showDropdown?e.allList:[]),popularListSet:new Set(e.showDropdown?e.popularList:[])};e.setValueBlank&&(i.searchInput=e.selectedValue?t(e.selectedValue):"",i.searchInputTmp=e.selectedValue?e.selectedValue:""),void 0!==e.value&&(i.searchInput=e.value),e.searchInput&&(i.searchInputTmp=e.searchInput),this.updateInputFieldData(e,(function(t){!i.searchInput&&e.selectedSlug&&t&&(i.searchInput=t[e.valueSelector],i.searchInputTmp=t[e.valueSelector]),a.setState(Object.assign({},e,i))}))}updateInputFieldData(e,t){if(s.A.isEmptyObject(e.selectedObj)){let a=new Set(e.allList,e.popularList),i=!1;a.forEach((a=>{let l=e.selectedSlug?e.selectedSlug:e.selectedValue;if(a[e.slugSelector?e.slugSelector:e.valueSelector]==l)return T(`.inputfield [data-id="${this.props.id}"]`).data("gsTaVal",a),i=!0,t(a),!1})),i||t()}else T(`.inputfield [data-id="${this.props.id}"]`).data("gsTaVal",e.selectedObj),t(e.selectedObj)}setChoices(e,t){let a=this,i=this.props;this.updateInputFieldData(this.props,(function(l){let r=i.selectedValue?i.selectedValue:i.selectedObj?i.selectedObj[i.valueSelector]:"";i.selectedSlug&&l&&(r=l[i.valueSelector]),a.setState({searchInput:r,typeaheadStatus:r?!!i.typeaheadStatus&&i.typeaheadStatus:i.typeaheadStatus,allListSet:i.showDropdown?e:new Set,popularListSet:i.showDropdown?t:new Set}),"function"==typeof i.cbOnLoad&&i.cbOnLoad()}))}showHideDrpDown(e,t){let a=this.props.showAllList?this.props.allList:this.state.allListSet,i=this.props.showAllList?this.props.popularList:this.state.popularListSet,l=T(e.target),r=!1;if(this.state.setValueBlank&&"focus"==e.type&&o.A.isDesktop()&&!this.props.showCityListDesktop&&(a=new Set,i=new Set,r=this.props.onClickBlank),t&&o.A.isDesktop()&&l&&"function"==typeof l[0].select?l[0].select():t&&(void 0!==l.data("moveTop")&&0!=l.data("moveTop")&&setTimeout((function(){T(l.data("moveTop")).length>0&&T(l.data("moveTop"))?.[0]?.scrollIntoView({block:"start",behavior:"smooth"})}),1e3),this.state.setValueBlank&&"focus"==e.type&&!this.props.showCityListOnClick&&(a=new Set,i=new Set),r=this.props.onClickBlank),t&&this.props.readOnly&&document.getSelection().removeAllRanges(),t&&void 0!==this.props.onFocus){let t=this;this.props.onFocus(e,(function(e){e.typeaheadStatus=!0,e.allList&&(e.allListSet=new Set(e.allList)),e.popularList&&(e.popularListSet=new Set(e.popularList)),t.setState(e)}))}let n={typeaheadStatus:!!t,allListSet:a,popularListSet:i,labelClass:"active"};r&&(n.searchInput="");let c=this.props;c.onFocusTracking&&"focus"==e.type&&s.A.setGtmTracking(l,{action:"typeahead_focus",label:l.attr("data-gsf-name")}),c.onClickTracking&&"click"==e.type&&s.A.setGtmTracking(l,{action:"typeahead_click",label:l.attr("data-gsf-name")}),this.setState(n)}checkQuery(e){return!(!this.state.prevQuery||e==this.state.prevQuery||""==e)}fiteration(e,t){e=new Set(e);let a,i,l=0,r=0,o=new Set,s=0,n=this,c=t?e.filter(n.filterFn(t.trim().toLowerCase())):e,p=c.map((function(e){e[n.state.headerAttr]?(l++,i=void 0===i?r:i):e[n.state.groupAttr]&&(a&&o.add(s),a=e[n.state.valueAttr],s=r),a&&r>s&&(e[n.state.groupParentAttr]!=a&&o.add(s),a=void 0,s=0),r++}));var d=c.size-1;if(d>=0&&(c.getByIndex(d)[n.state.headerAttr]?(l--,o.add(d)):c.getByIndex(d)[n.state.groupAttr]&&o.add(d)),l==r)p={};else{n.state.removeSingleHeader&&1==l&&o.add(i);let e=Array.from(c);o.forEach((t=>{delete e[t]})),c=new Set(e)}return c=c.filter((function(e){return void 0!==e})),c}handleKeyUp(e){var t=this;let a=new Set,i=new Set;clearTimeout(N),N=setTimeout((function(){let a=t.state.popularListSet&&t.checkQuery(e)?t.state.popularListSet:t.props.popularList;i=a?t.fiteration(a,e):new Set;let l={showDropdown:!0,prevQuery:e,popularListSet:i,labelClass:"active"};t.checkQuery(e)&&(l.typeaheadStatus=!0,T(".gs_ta_results").scrollTop(0,0)),t.setState(l)}),5),clearTimeout(I),I=setTimeout((function(){let i=t.checkQuery(e)&&t.state.allListSet?t.state.allListSet:t.props.allList;a=i?t.fiteration(i,e):new Set;let l={showDropdown:!0,prevQuery:e,allListSet:a,labelClass:"active"};t.checkQuery(e)&&(l.typeaheadStatus=!0,T(".gs_ta_results").scrollTop(0,0)),t.setState(l)}),8)}predicateBy(e){return function(t,a){return parseInt(t[e],10)>parseInt(a[e],10)?-1:parseInt(t[e],10)=0?(l[a.state.groupAttr]&&(t=l[a.state.valueAttr]),!0):!(!t||l[a.state.groupParentAttr]!=t)||!(!l[a.state.headerAttr]&&!l[a.state.groupAttr]):a.isDataAvailable(o,e)?(l[a.state.groupAttr]&&(t=l[a.state.valueAttr]),!0):!(!t||l[a.state.groupParentAttr]!=t)||!!l[a.state.groupAttr]}}}isDataAvailable(e,t){if(null==e)return;let a=e.split(" ");a.push(e);let i=!1;for(let e in a)if(i=a[e].startsWith(t),i)return i;let l=a.length-1;a.splice(l,1);let r=s.A.cloneObject(a);for(var o=0;o0;){a=t.next().next("li.gs_ta_choice")}1===a.length&&(t.removeClass("active"),a.addClass("active"))}else e=T(".gs_ta_results").find("li.gs_ta_choice:first"),e.length&&e.addClass("active");this.scroll()}highlightPreviousChoice(){let e,t,a;if(t=this.getHighlightedChoice(),null!==t){a=t.prev("li.gs_ta_choice");for(var i=0;a.length<=0&&i<3;){a=t.prev().prev("li.gs_ta_choice"),a.length||i++}1===a.length&&(t.removeClass("active"),a.addClass("active"))}else e=T(".gs_ta_results").find("li.gs_ta_choice"),e.length&&T(e[e.length-1]).addClass("active");this.scroll()}scroll(){let e=T(".gs_ta_results");var t,a,i,l,r,o,s;this.getHighlightedChoice().length<=0||(o=e.height(),r=(s=e.scrollTop())+o,null!==(t=this.getHighlightedChoice())&&(i=t.height(),a=(l=t.position().top+s)+i,lr&&e.scrollTop(a-o)))}handleKeyPress(e){let t=this;e.persist();let a=e.which||e.keyCode;if(a===this.state.arrowUp)this.highlightPreviousChoice();else if(a===this.state.arrowDown)this.highlightNextChoice();else if(a===this.state.enter)e.preventDefault(),e.stopPropagation(),setTimeout((()=>{T(".gs_ta_results li.active").length?(T(".gs_ta_results li.active").trigger("click"),s.A.setGtmTracking(T(e.target),{label:T(e.target).parent().find(".gs_ta_choice.active").data("name")})):"function"==typeof t.props.cb&&t.props.cb()}),500);else if(a===this.state.escape||9===a){let t={typeaheadStatus:!1},i="";9===a&&(void 0!==this.state.searchInputTmp&&(i=this.state.searchInputTmp),void 0!==this.props.value&&(i=this.props.value),t.searchInput=i),this.setState(t),void 0!==this.props.selectedValueCB&&this.props.selectedValueCB(e,(function(e){e.typeaheadStatus=!0,e.allList&&(e.allListSet=new Set(e.allList)),e.popularList&&(e.popularListSet=new Set(e.popularList)),this.setState(e)}))}return!1}debounce(e,t){return()=>{clearTimeout(O),O=setTimeout((()=>e.apply(this,arguments)),t)}}handleOnchange(e){let t=e.target.value,a=this;a.setState({searchInput:t,searchInputTmp:t}),this.debounce((()=>{"function"!=typeof this.props.APICallBack||this.state.stopApiCallBack?this.handleKeyUp(t):this.props.APICallBack(t,(function(e){e.typeaheadStatus=!0,e.allList&&(e.allListSet=new Set(e.allList)),e.popularList&&(e.popularListSet=new Set(e.popularList)),a.setState(e)}))}),300)()}handleSelection(e,t){let a=T(e.target).is("li")?T(e.target):T(e.target).closest("li"),i=a.data("gsTaVal")[this.props.defaultValueSelector]?a.data("gsTaVal")[this.props.defaultValueSelector]:a.data("gsTaVal")[this.props.valueSelector],l=T(`.inputfield [${this.props.id?`data-id="${this.props.id}"`:`data-gsf-name="${this.props.name}"`}]`);l.data("gsTaVal",a.data("gsTaVal")).val(i),s.A.hideKeyboard(l),this.setState({searchInput:i,searchInputTmp:i,typeaheadStatus:!1}),l.trigger("change_validate"),this.props.isTracking&&s.A.setGtmTracking(a),"function"==typeof this.props.cb&&this.props.cb(a,l,e)}formatChoice(e){var t,a=this;return function(i){return e&&!i[a.state.headerAttr]?(t=new RegExp(e.replace(/[#-.]|[[-^]|[?|{}]/g,"\\$&"),"gi"),i[a.state.textAttr].replace(t,"$&")):i[a.state.textAttr]}}onChangeTracking(e){this.props.onChangeTracking&&s.A.setGtmTracking(selector,{action:"typeahead_change",label:selector.attr("data-gsf-name")})}render(){const{_T:e}=this.context;let t=this.props,a=this.props.error,i=new Set,l=!0,o=0,c=function(a,s,n){if(!s)return;let c=[],p=a.props.highlightQuery?a.formatChoice(a.state.searchInput):"";return s.forEach(((s,d)=>{let u="",h=!1,g=!1,m="gs_ta";t.selectedSlug&&(l=t.selectedSlug===s.value),void 0!==s[a.state.headerAttr]&&s[a.state.headerAttr]?u=m+"_header":void 0!==s[a.state.groupAttr]&&s[a.state.groupAttr]?(u=m+"_group",(t.enableLocalitySelection||t.enableParentSelection)&&(h=!0,u+=" hover",l&&(u+=" active"),l=!1)):void 0!==s[a.state.groupParentAttr]&&s[a.state.groupParentAttr].trim().length>0?(u=m+"_choice "+m+"_group-child",h=!0,l&&(u+=" active"),l=!1):(u=m+"_choice",h=!0,l&&(u+=" active"),l=!1),n||i.add(s[a.state.textAttr]),n&&i.has(s[a.state.textAttr])&&(s.CRID&&s.CRID.split("#")[0]==a.state.dublicateIndex||(g=!0)),s.subtag&&(u+=" "+t.subtagLiCls),g||c.push(r.createElement("li",_({key:o++,style:{lineHeight:"initial"},className:u,"data-value":s[a.state.textAttr],"data-gs-ta-val":JSON.stringify(s)},h?{onClick:e=>a.handleSelection(e)}:{},{dangerouslySetInnerHTML:{__html:k().sanitize(`${s.subtag?`${s.subtag.title?s.subtag.title:""}`:""} ${a.state.translate?e(s[a.state.textAttr]):a.props.highlightQuery?p(s,a.state.searchInput):s[a.state.textAttr]}`,{RETURN_TRUSTED_TYPE:!0})}})))})),c},p=s.A.cloneObject(t.name);return r.createElement("div",{className:`ReactTypeahead variantTypeahead ${a.status?"":"errorField"} ${t.inputFieldCls} gs_ta ${t.cls} ${this.state.labelClass||this.state.searchInput?"active":""}`,"data-gsmtl-container":!0},t.div?t.div:"",t.showLabel&&t.label&&r.createElement("label",{htmlFor:t.id,className:`${this.props.clsLabel} ${this.state.labelClass||this.state.searchInput?"active":""}`},e(t.label)),r.createElement("input",_({type:t.inputType,id:t.id,"data-id":t.id,name:`${t.name}${t.generateRandomString?s.A.mathRandom().toString(16).slice(2):""}`,maxLength:t.maxLength,value:this.state.searchInput,"data-gsv-type":t.validation,"data-gsv-min-length":"50",onKeyPress:e=>{n.A.stopDefault(e),this.onChangeTracking(e)},onChange:e=>this.handleOnchange(e),onFocus:e=>this.showHideDrpDown(e,!0),"data-gsf-name":p,placeholder:e(t.placeholder),"data-type":t.name,"aria-label":"Select City"},t.isApp?{}:{"data-move-top":t.moveToTopInMobi},{onKeyDown:e=>this.handleKeyPress(e),autoComplete:t.autoComplete,className:t.inputCls},"function"==typeof t.onBlur?{onBlur:e=>t.onBlur(e)}:{},t.readOnly?{readOnly:!0}:{},{ref:e=>this.el=e})),t.children,this.state.typeaheadStatus&&r.createElement("div",{className:`typeHeadContainer ${t.resultContainerCls}`},r.createElement("div",{className:`gs_ta_results width100 ${t.resultCls} ${t.LazyCls}`,style:{width:t.width,maxHeight:t.maxHeight}},r.createElement("ul",null,c(this,this.state.popularListSet,!1),c(this,this.state.allListSet,!0)))))}}const G=D;D.defaultProps={id:"rt",cursor:0,index:0,allList:[],popularList:[],searchInput:"",searchInputTmp:"",showDropdown:!0,typeaheadStatus:!1,LazyCls:"",matchAny:!1,groupAttr:"group",groupParentAttr:"group-parent",headerAttr:"header",textAttr:"text",valueAttr:"value",isTracking:!1,removeSingleHeader:!1,_selectedChoice:null,arrowUp:38,arrowDown:40,enter:13,escape:27,cls:"",_mouseCoords:{x:0,y:0},moveToTopInMobi:0,showLabel:!0,valueSelector:"text",dublicateIndex:"1650",selectedValue:"",selectedObj:{},defaultValueSelector:"value",enableLocalitySelection:!1,enableParentSelection:!1,validation:"required",clsLabel:"",showAllList:!0,selectedSlug:"",slugSelector:"",filterField:"",width:"100%",inputType:"text",maxLength:"50",inputCls:"",readOnly:!1,maxHeight:"275px",resultContainerCls:"",translate:!0,onClickBlank:!0,highlightQuery:!1,resultCls:"",stopApiCallBack:!1,inputFieldCls:"inputfield",onFocusTracking:!1,onClickTracking:!1,onChangeTracking:!1,generateRandomString:!0,subtagLiCls:"topSellingList",error:{status:!0,message:""},autoComplete:"new-password",showCityListDesktop:!0},D.contextTypes={_T:l().func}},9516:(e,t,a)=>{a.d(t,{A:()=>r});var i=a(6314),l=a.n(i)()((function(e){return e[1]}));l.push([e.id,'.galleryNavWrpr{display:flex;flex-direction:column-reverse}.galleryNavWrpr .variantTypeahead{margin-bottom:32px}.galleryNav{white-space:nowrap;overflow-y:auto;margin-bottom:24px}.galleryNav::-webkit-scrollbar{display:none}.galleryNav li{display:inline-block;margin-right:8.21px;padding:8.21px 19.15px;color:#000;cursor:pointer;border-radius:5.471px;border:.684px solid #dedede;font-size:12px;font-weight:400}.galleryNav li.active{background:#181168;color:#fff;font-weight:500}.galleryNav li.active a{color:#fff}.galleryColorSlider{position:relative}.galleryColorSlider li{margin-bottom:13px}.galleryColorSlider li img{display:block}.galleryColorSlider li:last-child{margin-bottom:0}.galleryColorSlider .galleryName{text-indent:0px;position:absolute;left:0%;bottom:50px;width:100%;text-align:center;font-size:14px;color:#000;white-space:nowrap;text-transform:capitalize}.galleryColorSlider .colorSingleItem .colorSection{padding-bottom:50px}.galleryColorSlider .colorSingleItem .colorSection .galleryName{bottom:14px}.galleryColorSlider .colorSection .gscr_counter{display:none !important}.galleryColorSlider .galleryControlls{width:auto;float:right;margin-right:44px}.galleryColorSlider .galleryControlls span{margin-left:34px;display:inline-block}.galleryColorSlider .gscr_slideOuter{position:relative}.galleryColorSlider .gscr_slideOuter .gscr_lSPrev{left:0px}.galleryColorSlider .gscr_slideOuter .gscr_lSGallery li a,.galleryColorSlider .gscr_slideOuter .gscr_lSGallery .gscr_active a{width:100%;height:auto;border-radius:0px;margin:0px;background-color:rgba(0,0,0,0)}.galleryColorSlider .gscr_slideOuter .gscr_pagercontent{position:relative;bottom:0px}.galleryColorSlider .feelTheCar{bottom:0;left:0;position:absolute;text-align:center;width:100%;z-index:5}.galleryColorSlider .feelTheCar li{margin:0 5px;width:auto}.galleryColorSlider .feelTheCar li span{padding:0 25px}.galleryColorSlider #pictureGallery360View li{margin-bottom:0}.galleryColorSlider #pictureGallery360View iframe,.galleryColorSlider #pictureGallery360View li{height:240px;width:100%}.colorGallery .ScBtn{background:rgba(17,17,17,.8);border:none;box-shadow:none;position:absolute;text-indent:-9999px;top:43%;z-index:99;height:40px;width:40px;border-radius:4px}.colorGallery .ScBtn.next{right:-10px}.colorGallery .ScBtn.prev{left:-10px}.colorGallery .ScBtn.prev:after{border:1px solid #fff;border-width:0 0 2px 2px;content:"";display:block;font-size:0;left:50%;line-height:0;position:absolute;top:50%;transform:rotate(-315deg);height:10px;margin:-5px 0 0 -4px;width:10px}.colorGallery .ScBtn.next:after{border:1px solid #fff;border-width:0 0 2px 2px;content:"";display:block;font-size:0;left:50%;line-height:0;position:absolute;top:50%;height:10px;width:10px;margin:-5px 0 0 -5px;transform:rotate(-135deg)}.colorGallery .gscr_lSGallery{width:100%;white-space:normal;margin:auto}.colorGallery .gscr_lSGallery li{position:relative}.colorGallery .gscr_lSGallery li .thumbItemList{width:100%;height:56px;overflow:hidden;background-size:cover !important;background-repeat:no-repeat !important;background-position:50% 50% !important}.colorGallery .gscr_lSGallery li:first-child .galleryName{transform:translateX(-20%)}.colorGallery .gscr_lSGallery li:nth-last-of-type(2) .galleryName,.colorGallery .gscr_lSGallery li:last-child .galleryName{left:inherit;right:7px}.colorGallery .gscr_active .galleryName{display:block}.colorGallery .gs_control{position:relative;width:36px;height:36px;margin:30px auto 0px;padding:0px;display:block}.colorGallery .gs_control input{width:100%;height:100%;z-index:99;display:block;left:0px;cursor:pointer}.colorGallery .gs_control input:checked~.colorHolder i:before{content:"";position:absolute;top:2px;left:2px;width:28px;height:28px;background-color:rgba(0,0,0,.3);border-radius:100%}.colorGallery .gs_control input:checked~.colorHolder i:after{content:"";width:6px;height:10px;border-style:solid;border:solid #fff;border-width:0 1px 1px 0;transform:rotate(45deg);position:absolute;top:50%;left:50%;margin-top:-7px;margin-left:-3px}.colorGallery .gs_control .colorHolder{width:100%;height:100%;padding:1px;display:inline-block;border-radius:100%;top:0px;left:0px;position:absolute}.colorGallery .gs_control .colorHolder i{border:1px solid rgba(0,0,0,.15);width:100%;height:100%;border-radius:100%;display:block;position:relative}.colorGallery .gscr_active .gs_control .colorHolder i:after{border:solid #fff;border-width:0 1px 1px 0;content:"";height:10px;left:50%;margin-left:-3px;margin-top:-7px;position:absolute;top:50%;transform:rotate(45deg);width:6px}.colorGallery .gscr_active .gs_control .colorHolder i:before{background-color:rgba(36,39,44,.3);border-radius:100%;content:"";position:absolute;height:38px;left:3px;top:3px;width:38px}.galleryColorSlider.colorsTab .gscr_dot{width:auto}.galleryColorSlider .gscr_pagercontent{white-space:nowrap;overflow-y:auto;width:228px;position:absolute;top:0;right:0;height:494px;padding-right:5px}.galleryColorSlider .gscr_pagercontent::-webkit-scrollbar{display:block}.galleryColorSlider .gscr_dot{margin:0 0 15px}.galleryColorSlider .boxshoadowInset li img.fadeIn{border-radius:2px}.galleryColorSlider .boxshoadowInset li:after{border-radius:0px 0px 2px 2px;display:none}@media screen and (min-width: 768px){.galleryNavWrpr{flex-direction:row;justify-content:space-between;align-items:center;margin-bottom:32px}.galleryNavWrpr .variantTypeahead{margin:0}.galleryNav{margin-bottom:0}.galleryNav li{font-size:18px;padding:12px 28px;margin-right:12px;border-radius:8px}.galleryColorSlider .colorGallery>[data-type=css-carousel]{padding-right:278px}.galleryColorSlider .colorGallery>[data-type=css-carousel] li{height:494px}.galleryColorSlider .colorGallery>[data-type=css-carousel] li img{width:100%;height:100%;object-fit:cover}.galleryColorSlider .colorGallery>[data-type=css-carousel] .gscr_pagercontent li{height:128px}.galleryColorSlider .colorGallery>[data-type=css-carousel] .gscr_pagercontent li img{width:100%;height:100%;object-fit:cover}.galleryColorSlider .colorGallery [data-track-section]>[data-type=css-carousel]{padding-right:278px}.galleryColorSlider .colorGallery [data-track-section]>[data-type=css-carousel] li{height:494px}.galleryColorSlider .colorGallery [data-track-section]>[data-type=css-carousel] li img{width:100%;height:100%;object-fit:cover}.galleryColorSlider .colorGallery [data-track-section]>[data-type=css-carousel] .gscr_pagercontent li{height:128px}.galleryColorSlider .colorGallery [data-track-section]>[data-type=css-carousel] .gscr_pagercontent li img{width:100%;height:100%;object-fit:cover}.galleryColorSlider .colorGallery [data-track-section]>[data-type=css-carousel] [data-pager=Colours] li{height:auto}.galleryColorSlider .colorGallery [data-track-section]>[data-type=css-carousel] .feelTheCar li{height:auto}.galleryColorSlider .colorGallery [data-track-section="360 View"]>[data-type=css-carousel]{padding-right:0}.galleryColorSlider #pictureGallery360View iframe,.galleryColorSlider #pictureGallery360View li{height:600px}.galleryColorSlider .galleryName{bottom:60px;font-size:16px}.galleryColorSlider .colorSingleItem .colorSection .galleryName{bottom:0px}.colorGallery .gscr_lSGallery li .thumbItemList{height:128px}.colorGallery .gs_control{width:48px;height:48px}.colorGallery .gs_control input:checked~.colorHolder i:before{top:3px;left:3px}.colorGallery .gs_control input:checked~.colorHolder i:before{width:38px;height:38px}}',""]);const r=l}}]);